package com.haoting.mamba.ucenter.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.haoting.common.utils.PageUtils;
import com.haoting.common.utils.Query;

import com.haoting.mamba.ucenter.dao.UserFollowDao;
import com.haoting.mamba.ucenter.entity.UserFollowEntity;
import com.haoting.mamba.ucenter.service.UserFollowService;


@Service("userFollowService")
public class UserFollowServiceImpl extends ServiceImpl<UserFollowDao, UserFollowEntity> implements UserFollowService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<UserFollowEntity> page = this.page(
                new Query<UserFollowEntity>().getPage(params),
                new QueryWrapper<UserFollowEntity>()
        );

        return new PageUtils(page);
    }

}